from RandomArray import *

def refresh_seed():
    (a, b) = get_seed()
    seed(a+1, b+1)    

def get_uniform(num):
    (a, b) = get_seed()
    seed(a+1, b+1)
    
    return random(num)

def get_jnorm(means, cov, num):
    refresh_seed()
    return multivariate_normal(means, cov, num)


def get_poisson(mean, num):
    refresh_seed()
    return poisson(mean, num)
    

def main_test():
    arrival = get_poisson(5, 50)
    #print arrival
    total = sum(arrival)
    p1 = get_uniform(total)
    p2 = get_uniform(total)
    p3 = get_uniform(total)
    print p1
    print p2
    print p3
    print get_seed()
        
if __name__ == '__main__':
    main_test()
